<extend name="../layout" />

<block name="main_content">
    <include file="Common:SettingsHeader:baseData" />
    <div class="widget-box">
        <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
            <h5>{:L('goods_category')}</h5>
            <a href="{:U('add')}" class="label label-info">{:L('add_new')}</a>
        </div>
        <div class="widget-content">
            <table class="table table-striped with-check">
              <thead>
                <tr>
                  <th>{:L('id')}</th>
                  <th>{:L('name')}</th>
                  <th>{:L('operation')}</th>
                </tr>
              </thead>
              <tbody>
                  <volist name="tree" id="t">
                      <tr>
                          <td>{$t.id}</td>
                          <td>{$t.prefix_name}</td>
                          <td>
                              <a href="javascript:addChild('{$t.id}');">{:L('add_child');}</a>
                              <a href="javascript:edit('{$t.id}');">{:L('edit');}</a>
                              <a href="javascript:del('{$t.id}');">{:L('delete');}</a>
                          </td>
                      </tr>
                  </volist>
              </tbody>
            </table>
        </div>
    </div>
</block>